//
// Created by binny on 2022/6/14.
//
#include "mytime.h"

int main() {
    Time time; //调用默认构造函数
    std::cout << "main 局部函数对象的地址 = " << &time << std::endl;
    time.reset(2, 90);
    time = time.sum(time);//赋值函数
    std::cout << "main 局部函数对象的地址 = " << &time << std::endl;

    Time time1 = time;//声明 time1 ,并初始化,调用拷贝函数初始化 time1
    time.show();
    std::cout << "main 局部函数对象的地址 = " << &time << std::endl;
    return 0;
}